<?php

/**
 * Servicio form.
 *
 * @package    AltargetEcommerce
 * @subpackage form
 * @author     Carlo Lopez
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ServicioForm extends BaseServicioForm
{
  public function configure()
  {
   /*
    unset(
      $this['created_at'], $this['updated_at'],
      $this['productos_list']
    );
   */

    $this->setWidget('nombre',new sfWidgetFormInputText());
    $this->setValidator('nombre', new sfValidatorString(array('max_length' => 255, 'required' => true)));
    
    $this->setWidget('imagen',new sfWidgetFormInputFile(array('needs_multipart' => true, 'label' => "imagen")));
    $this->setValidator('imagen', new sfValidatorFile(array('required' => false)));
    
    $this->useFields(array('nombre','imagen','descripc','activo','created_at','updated_at'));

  }
}
